// src/stores/userStore.ts
import { defineStore } from 'pinia';

interface User {
    omni_user_uuid: string;
    identity_type: string;
    identity_value: string;
}

export const useUserStore = defineStore('userStore', {
    state: () => ({
        user: null as User | null,
    }),
    actions: {
        setUser(user: User) {
            this.user = user;
        },
        clearUser() {
            this.user = null;
        },
    },
});
